package com.fcscs.ecms.gwt.server;

import java.util.List;

import com.fcscs.core.gwt.server.FcsRemoteServiceServlet;
import com.fcscs.core.system.ApplicationContextHolder;
import com.fcscs.cservice.domain.ThemeItem;
import com.fcscs.ecms.gwt.client.ECMSThemeService;
import com.fcscs.ecms.service.ECMSThemeManager;

public class ECMSThemeServiceImpl extends FcsRemoteServiceServlet implements ECMSThemeService{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2682073277053366055L;

	private ECMSThemeManager themeMgr = (ECMSThemeManager)
							ApplicationContextHolder.getBeanFromContext("ecmsThemeManager");
	
	@Override
	public ThemeItem getThemeItem(long id) {
		return themeMgr.getThemeItem(id);
	}

	@Override
	public List<ThemeItem> getThemeItemList(long orgId, long propId,boolean isCurrent) {
		return themeMgr.getThemeItemList(orgId, propId, isCurrent);
	}

	@Override
	public List<ThemeItem> getThemeItemList(long orgId, long propId,long versionId) {
		return themeMgr.getThemeItemList(orgId, propId, versionId);
	}

	@Override
	public List<ThemeItem> saveThemeItemList(List<ThemeItem> tiList) {
		return themeMgr.saveThemeItemList(tiList);
	}

	@Override
	public ThemeItem createThemeItem(ThemeItem ti) {
		return themeMgr.createThemeItem(ti);
	}

	@Override
	public ThemeItem saveThemeItem(ThemeItem ti) {
		return themeMgr.saveThemeItem(ti);
	}

	@Override
	public boolean deleteThemeItem(ThemeItem ti) {
		return themeMgr.deleteThemeItem(ti);
	}

	@Override
	public boolean permDeleteThemeItem(ThemeItem ti) {
		return themeMgr.permDeleteThemeItem(ti);
	}

	@Override
	public boolean isThemeItemTaken(long orgId, long propId, String name,Long id, long versionId) {
		return themeMgr.isThemeItemTaken(orgId, propId, name, id, versionId);
	}

	@Override
	public List<com.fcscs.cservice.domain.model.ThemeItem> getThemeItemViewList(long orgId, long propId) {
		return themeMgr.getThemeItemViewList(orgId, propId);
	}


}
